package org.bloodnoteii.cloudconsumer.Hello.services;

import com.alibaba.fastjson.JSONObject;
import org.bloodnoteii.cloudconsumer.Hello.services.Impl.HelloServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "cloud-provider", fallbackFactory = HelloServiceImpl.class)
public interface HelloService {

    @PostMapping("/api/v1/helloProvider")
    JSONObject helloConsumer(@RequestParam("id") Integer id);
}

